#ifndef REGULATIONWIDGET_H
#define REGULATIONWIDGET_H

#include <QWidget>
#include <QTimer>
#include <QProcess>
#include <QLabel>
#include <QMovie>
// #include "sys_data_struct.h"

namespace Ui {
class RegulationWidget;
}

class RegulationWidget : public QWidget
{
    Q_OBJECT

public:
    explicit RegulationWidget(QWidget *parent = nullptr);
    ~RegulationWidget();
    


    QTimer delay_time;
    QTimer delay_show_label;
    
signals:
    void showVideo(QString videoPath);
    void widgetClose(uint8_t winID);
    
protected:
    void closeEvent(QCloseEvent *event);

public slots:
    void changeGIF();
    void happyGIF();


private:
    Ui::RegulationWidget *ui;
    QProcess *mpvProcess;
    QMovie *emo_gif;





};

#endif // RegulationWidget_H